package com.Team7.domain;

public class OFFile {
    private String name;    //绝对路径
    private Byte attribute; //文件属性
    private Integer number; //文件起始盘号
    private Integer length; //文件长度
    private Integer flag;   //操作类型 用“0”表示以读操作方式打开文件，用“1”表示以写操作方式打开文件
    private Pointer read;   //读文件的位置，文件打开时 dnum 为文件起始盘块号，bnum 为“0”
    private Pointer write;  //写文件的位置，文件刚建立时 dnum 为文件起始盘块号，bnum 为“0 ，打开文件时 dnum 和 bnum 为文件的末尾位置

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Byte getAttribute() {
        return attribute;
    }

    public void setAttribute(Byte attribute) {
        this.attribute = attribute;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Pointer getRead() {
        return read;
    }

    public void setRead(Pointer read) {
        this.read = read;
    }

    public Pointer getWrite() {
        return write;
    }

    public void setWrite(Pointer write) {
        this.write = write;
    }

    @Override
    public String toString() {
        return "OFFile{" +
                "name='" + name + '\'' +
                ", attribute=" + attribute +
                ", number=" + number +
                ", length=" + length +
                ", flag=" + flag +
                ", read=" + read +
                ", write=" + write +
                '}';
    }
}
